package NEWKE;

import java.util.Scanner;

public class Exam {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        while (sc.hasNext()){
            char[] c=str.toCharArray();
            StringBuilder stringBuilder=new StringBuilder();
            for (int i = 0; i < str.length(); i++) {
                char a=str.charAt(i);
                String tmp=stringBuilder.toString();
                if(!tmp.contains(a+"")){
                    stringBuilder.append(a);
                }
            }
            System.out.println(stringBuilder);
        }

    }
}
